<?php include_once 'header.php'; ?>

    <script type="text/javascript" src="/public/statics/libs/wangEditor/dist/js/lib/jquery-1.10.2.min.js"></script>

    <div id="page-wrapper">
        <div class="container-fluid">
            <div class="row" style="margin-top: 40px;">
                <div class="col-lg-12">
                    <form method="post" role="form" id="form">
                        <div class="form-group input-group">
                            <label>用户赢的概率(0-100)</label>
                            <input type="text" name="rate" class="form-control" value="<?php echo env('ORDER_WILL_WIN') ?>" placeholder="0-100之间的数字">

                        </div>
                        <a id="submit" type="submit" class="btn btn-primary">发布</a>
                    </form>
                </div>
            </div>
        </div>
    </div>

    <script type="text/javascript">
        $("#submit").click(function(){
            var data = $("#form").serializeArray();
            $.post('/administrator/doWinControl',data,function(data){
                alert(data.message);
            },'JSON');
        });
    </script>

<?php include_once 'footer.php'; ?>